package com.alibaba.algo.exception;

import lombok.Getter;

/**
 * 岗位管理异常描述
 *
 * @author Fan.tianpeng
 * @date 2021/4/25 10:13
 */
@Getter
public enum SysPositionErrorCode {
    HAS_UNIQUE_MAIN_POSITION(20000, "组织主岗必须唯一"),
    DUPLICATE_POS_NAME_IN_SAME_ORG(20001,"同组织下此岗位名称已存在");

    private Integer code;

    private String message;

    SysPositionErrorCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
